package builderPattern.modify;

/**
 * @author： pang-yun
 * @date： 2021-10-23 11:48
 * 功能目的 ：用于
 */

public class Client {
    public static void main(String[] args) {
        // commonHouse
        CommonHouseBuilder commonHouseBuilder = new CommonHouseBuilder();

        // 指挥者
        HouseBuilderDirector houseDirector = new HouseBuilderDirector(commonHouseBuilder);

        House house = houseDirector.constructHouse();

        System.out.println(house);


        //-------------highHouse
        houseDirector.setHouseBuilder(new HighHouseBuilder());
        House highHouse = houseDirector.constructHouse();
        System.out.println(highHouse);

    }
}
